package com.jrx.anytxn.investor.mapper.ext;

import com.jrx.anytxn.investor.entity.TlInvestorLimitApproveLog;
import com.jrx.anytxn.investor.mapper.base.TlInvestorLimitApproveLogMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户出资方授信审批记录mapper扩展
 *
 * @author liuyang
 * @date  2020-06-09
 **/
public interface ExtTlInvestorLimitApproveLogMapper extends TlInvestorLimitApproveLogMapper {

    /**
     * 批量插入客户出资方授信审批记录
     *
     * @param investorLimitApproveLogs 客户出资方授信审批记录
     * @return int 插入条数
     * @author liuyang
     * @date  2020-06-09
     */
    int batchInsert(List<TlInvestorLimitApproveLog> investorLimitApproveLogs);

    /**
     * 根据审批状态查询客户出资方授信审批记录
     *
     * @param approveStatusList 路由状态
     * @return List<TlInvestorLimitApproveLog> 客户出资方授信审批记录
     * @author liuyang
     * @date  2020-06-10
     */
    List<TlInvestorLimitApproveLog> selectByApproveStatusForBatch(@Param("approveStatusList") List<String> approveStatusList);

    /**
     * 批量更新客户出资方授信审批记录（作业批次）
     *
     * @param investorLimitApproveLogs 客户出资方授信审批记录
     * @return int 更新条数
     * @author liuyang
     * @date  2020-06-10
     */
    int batchUpdateForBatch(List<TlInvestorLimitApproveLog> investorLimitApproveLogs);
}